package io.jee.runshan.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 信息
 * 
 * @author SunX
 *
 */
@Entity
@Table(name = "runshan_information")
public class Information {
	
	public static final Integer TYPE_ACTIVITY = 0;
	public static final Integer TYPE_MALL = 1;
	public static final Integer TYPE_FLOOR = 2;
	public static final Integer TYPE_COMPANY = 3;

	private Integer id;
	private String title;// 标题
	private String image;// 图片
	private String content;// 内容
	private Integer type;// 类别 0：活动管理 1：商城简介 2：楼层简介 3：公司简介
	private Integer orderIndex;
	private Date publishTime; // 发布时间

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.orderIndex = id;
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(length = 65535, columnDefinition = "TEXT")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public Integer getOrderIndex() {
		return orderIndex;
	}

	public void setOrderIndex(Integer orderIndex) {
		this.orderIndex = orderIndex;
	}
	
}
